package com.project.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.LogBean;
import com.project.service.ILogService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.time.LocalDate;

/**
 * @author RJ
 * @date 2022/9/16 10:10
 */
@RestController
@RequestMapping("log")
public class LogController {
    @Resource
    private ILogService logService;

    @RequestMapping("info")
    public IPage<LogBean> cutLogByDate(Integer pageNo, Integer pageSize, LocalDate startDate, LocalDate endDate) {
        IPage<LogBean> page = logService.cutLogByDate(pageNo, pageSize, startDate, endDate);
        return page;
    }
}
